package com.zb.designmode.bridge.poststation.thing;

import com.zb.designmode.bridge.poststation.post.IPost;

/**
 * <p>description：事物抽象类</p>
 * <p>copyright： copyright(C)2016-2099</p>
 * <p>Life is short,we need passion</p>
 * <p>Summary： </p>
 * <p>instructions： </p>
 * Date 3/16/21</p>
 * Author mac
 *
 * @version 1.0
 */
public abstract class AbstractThing {
    // 事物名称
    private String name;
    // 邮寄方式
    private IPost iPost;

    public AbstractThing(String name, IPost iPost) {
        this.name = name;
        this.iPost = iPost;
    }

    public String getName() {
        return name;
    }

    public void post() {
        iPost.post(getName());
    }


}
